{% extends "base.html" %}

{% block head %}
{% endblock %}

{% block body %}
<body onload="$('loginform').submit();">
  <p><span class="warning">Warning: this sometimes breaks when deployed on
    appspot.com. We're investigating, but it's low priority right now.</span>
  </p>

  <p>
    <a href="{{ oidrequest.trust_root }}">{{ oidrequest.trust_root }}</a>
    has asked for your identity. Do you want to respond with your nickname
    <span class="nickname">{{ user.nickname }}</span>?
  </p>

  <form name="loginform" id="loginform" method="post" action="/login">
    <input type="radio" name="allow" value="yes" checked="checked"/> Yes
    <input type="radio" name="allow" value="no"/> No
    <!--<input type="submit" name="yes" value="Yes" />
    <input type="submit" name="no" value="No" />-->
    
    <!-- these are used to recreate the OpenID CheckIDRequest -->
    <input type="hidden" name="openid.mode"
           value="{{ oidrequest.mode }}" />
    <input type="hidden" name="openid.immediate"
           value="{{ oidrequest.immediate }}" />
    <input type="hidden" name="openid.identity"
           value="{{ oidrequest.identity }}" />
<!--    <input type="hidden" name="openid.claimed_id"-->
<!--           value="{{ oidrequest.claimed_id }}" />-->
    <input type="hidden" name="openid.trust_root"
           value="{{ oidrequest.trust_root }}" />
    <input type="hidden" name="openid.return_to"
           value="{{ oidrequest.return_to }}" />
    <input type="hidden" name="openid.assoc_handle"
           value="{{ oidrequest.assoc_handle }}" />
    <input type="hidden" name="openid.assoc_type"
           value="{{ oidrequest.assoc_type }}" />
      
    <input type="submit" value="Allow"/>
  </form>
</body>
</html>
{% endblock %}